<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MyPetStore_BMS</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>
<div th:replace="common/left">

</div>
<div id="BackLink">
    <a href="/admin_catalog/admin_view">Return to Main</a>
</div>
<div id="bCatalog">
<h2>Orders</h2>
<div align="center">
<table id="accountform">
    <tr>
        <th>Order ID</th>
        <th>Date</th>
        <th>Total Price</th>
        <th>Order Status</th>
        <td></td>
    </tr>
    <tr th:each="order:${orderList}">
        <td><a th:href="@{/order/adminViewOrder(orderId=${order.orderId})}" th:text="${order.orderId}">orderId</a></td>
        <td th:text="${order.orderDate}">orderDate</td>
        <td th:text="'$'+${#numbers.formatDecimal(order.totalPrice,1,2)}">totalPrice</td>
        <td th:text="${order.status}">orderstatus</td>
        <td><a class="Button" th:href ="@{/admin/adminDeleteOrder(orderId=${order.orderId})}"> 删除订单</a></td>

    </tr>

</table>
</div>
</div>
</body>
</html>